/**
 * This file is part of the drip-table project.
 * @link     : https://drip-table.jd.com/
 * @author   : Emil Zhai (root@derzh.com)
 * @modifier : Emil Zhai (root@derzh.com)
 * @copyright: Copyright (c) 2021 JD Network Technology Co., Ltd.
 */

@font-face {
  font-family: CircularStd;
  src: url("//storage.360buyimg.com/drip-design/drip-table/circular-std.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: CircularStd;
  src: url("//storage.360buyimg.com/drip-design/drip-table/circular-std-bold.woff") format("woff");
  font-weight: 700;
}

.drip-table {
  &-root {
    background: #ffffff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.7;
    word-wrap: break-word;
    -webkit-overflow-scrolling: touch;
  }

  &-font-circular-std {
    font-family:
      CircularStd,
      PingFangSC-Regular,
      "Microsoft YaHei",
      "Open Sans",
      "Helvetica Neue",
      Helvetica,
      Arial,
      sans-serif;
  }

  /////////////
  // Header  //
  /////////////

  &-header {
    transition: background-color 300ms ease-in-out, box-shadow 300ms ease-in-out;
    border-bottom: #2276f3 1px solid;
    background-color: white;

    &--fixed {
      border-bottom: unset;
      background-color: unset;
      box-shadow: 0 10px 40px 0 #0000001a;
    }
  }

  /////////////
  // Section //
  /////////////

  &-section {
    position: relative;
    overflow: hidden;
  }

  ///////////////
  // Section 1 //
  ///////////////

  &-section1 {
    color: #2276f3 !important;
  }

  &-section1-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(
        0deg,
        #edf3ff 0%,
        #ffffff 100%
      );
  }

  &-slogan {
    padding-top: 8rem;
    font-size: 4.75rem !important;
    font-weight: 700 !important;
  }
  @media screen and (max-width: 768px) {
    &-slogan {
      padding-top: 3rem !important;
      font-size: 3rem !important;
    }
  }

  &-install-cmd {
    border-radius: 6px;
    max-width: 42rem;
    margin: 0 auto;
    font-size: .875rem !important;
  }

  &-screen-image {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 35px 60px 0 #0000001a;
  }

  &-typewriter {
    margin: 2.5rem 0 1.5rem !important;
    font-size: 1.1rem !important;
  }
  @media screen and (max-width: 768px) {
    &-typewriter {
      margin: 1rem 0 !important;
      font-size: .9rem !important;
    }
  }

  &-typewriter span {
    font-size: 1.1rem !important;
  }
  @media screen and (max-width: 768px) {
    &-typewriter span {
      font-size: .9rem !important;
    }
  }

  &-description {
    margin-top: 1.75rem !important;
    font-size: 1.25rem !important;
  }
  @media screen and (max-width: 768px) {
    &-description {
      margin-top: 6rem !important;
      font-size: 1.25rem !important;
    }
  }

  ///////////////
  // Section 2 //
  ///////////////

  &-section2 {
    background-color: #2276f3;
    position: relative;
  }

  &-section2__container {
    position: relative;
    z-index: 2;
  }

  &-section2__desc {
    line-height: 2em;
  }

  &-demo-video {
    border-radius: 5px;
    box-shadow:
      0 10px 16px 0 #00000033,
      0 6px 20px 0 #00000030;
  }

  ///////////////
  // Section 3 //
  ///////////////

  &-section3 {
    background: url("https://img13.360buyimg.com/imagetools/jfs/t1/43679/22/21834/2096984/639b48b8Ed0406688/483fd4cee307efd2.png") no-repeat;
    background-size: cover;
    background-position: center;
    height: calc(100vh - 5rem);
  }
  @media screen and (max-width: 768px) {
    &-section3 {
      background-size: 100% auto;
    }
  }

  &-section3__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #00000080;
    z-index: 0;
  }

  ///////////////
  // Section 4 //
  ///////////////

  &-section4 {
    background-color: #2276f3;
    position: relative;
    padding-bottom: 200px !important;
  }

  ///////////////
  // Section 5 //
  ///////////////

  &-section5 {
    margin-top: -200px;
    padding-top: 0;
  }

  &-section5 &-feature-icon {
    text-align: center;
  }

  &-section5 &-feature-icon svg {
    width: 5rem;
    height: 5rem;
  }

  &-compare-slider {
    border: 1px solid #e5e5e5;
  }
  @media screen and (min-width: 768px) {
    &-compare-slider {
      margin-top: 10rem;
    }
  }

  &-section5__desc {
    line-height: 2em;
  }

  ///////////////
  // Section 6 //
  ///////////////

  &-section6 {
    background-color: #fafafa;
    position: relative;
    display: none;
  }

  &-section6__container {
    position: relative;
    z-index: 2;
  }

  &-user-list-title {
    font-size: 2.2rem !important;
    font-weight: 400;
  }

  &-user-list {
    display: flex;
    flex-wrap: wrap;
    max-width: 65rem;
    margin: 0 auto;
  }

  &-users-item {
    width: 220px;
    height: 61px;
    margin: 20px 20px 0;
  }

  &-users-item > img {
    width: 100%;
    height: 100%;
  }

  &-users-item > &-hover {
    display: none;
  }

  &-users-item:hover > &-hover,
  &-users-item:active > &-hover {
    display: unset;
  }

  &-users-item:hover > &-normal,
  &-users-item:active > &-normal {
    display: none;
  }

  ///////////////
  // Section 7 //
  ///////////////

  &-section7 {
    height: 90vh;
    background: url("//img11.360buyimg.com/imagetools/jfs/t1/139651/25/24394/459532/61c178d7Eb82f1631/2cfbc37a4a631fed.jpg") no-repeat;
    background-size: cover;
    background-position: center;
  }

  &-image.is-40x40 {
    width: 40px;
    height: 40px;
  }

  &-shape {
    overflow: hidden;
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    direction: ltr;
  }

  &-shape svg {
    z-index: -1;
  }

  &-shape-bottom {
    bottom: -1px;
    transform: rotate(180deg) scaleX(-1);
  }

  &-shape-bottom2 {
    bottom: -8px;
    transform: rotate(180deg) scaleX(-1);
    display: flex;
    justify-content: center;
  }

  &-shape-bottom2 svg {
    max-width: 2100px;
  }

  &-shape-fill {
    fill: #ffffff;
  }

  &-img-bg {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
  }

  ///////////////
  // Footer    //
  ///////////////

  &-site-footer {
    color: #999999 !important;
    background-color: #101010;
    padding: 2rem 3rem;
  }

  &-site-footer ul li {
    position: relative;
    font-size: 14px;
    line-height: 26px;
  }

  &-site-footer ul li.has-icon {
    margin-bottom: 24px;
    padding-left: 30px;
  }

  &-site-footer ul li i {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    color: #2075f3;
  }

  &-site-footer ul li a:link,
  &-site-footer ul li a:visited,
  &-site-footer ul li a:active {
    color: #999999 !important;
  }

  &-site-footer ul li a:hover {
    color: #2075f3 !important;
  }

  &-site-footer p {
    font-size: 14px;
    line-height: 26px;
  }

  &-gitter {
    font-size: .7rem;
    margin-left: -.1rem !important;
    margin-right: .6rem !important;
  }

  &-footer-drip-icon {
    width: 146px;
    height: 31px;
  }
  @media screen and (min-width: 768px) {
    &-footer-column {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }
  @media screen and (max-width: 481px) {
    &-is-variable.is-6 {
      --column-gap: 1rem !important;
    }

    &-section7 {
      display: block !important;
    }

    &-section7 &-title {
      font-size: 1.5rem;
    }

    &-section7 &-subtitle {
      font-size: 1rem;
    }
  }

  &-footer-bottom {
    margin-top: 4rem;
  }
}
